package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SysUserProjectMapper;
import com.ruoyi.system.domain.SysUserProject;
import com.ruoyi.system.service.ISysUserProjectService;

/**
 * 授权项目Service业务层处理
 * 
 * @author cooc
 * @date 2024-06-22
 */
@Service
public class SysUserProjectServiceImpl implements ISysUserProjectService 
{
    @Autowired
    private SysUserProjectMapper sysUserProjectMapper;

    /**
     * 查询授权项目
     * 
     * @param id 授权项目主键
     * @return 授权项目
     */
    @Override
    public SysUserProject selectSysUserProjectById(Long id)
    {
        return sysUserProjectMapper.selectSysUserProjectById(id);
    }

    /**
     * 查询授权项目列表
     * 
     * @param sysUserProject 授权项目
     * @return 授权项目
     */
    @Override
    public List<SysUserProject> selectSysUserProjectList(SysUserProject sysUserProject)
    {
        return sysUserProjectMapper.selectSysUserProjectList(sysUserProject);
    }

    /**
     * 新增授权项目
     * 
     * @param sysUserProject 授权项目
     * @return 结果
     */
    @Override
    public int insertSysUserProject(SysUserProject sysUserProject)
    {
        return sysUserProjectMapper.insertSysUserProject(sysUserProject);
    }

    /**
     * 修改授权项目
     * 
     * @param sysUserProject 授权项目
     * @return 结果
     */
    @Override
    public int updateSysUserProject(SysUserProject sysUserProject)
    {
        return sysUserProjectMapper.updateSysUserProject(sysUserProject);
    }

    /**
     * 批量删除授权项目
     * 
     * @param ids 需要删除的授权项目主键
     * @return 结果
     */
    @Override
    public int deleteSysUserProjectByIds(Long[] ids)
    {
        return sysUserProjectMapper.deleteSysUserProjectByIds(ids);
    }

    /**
     * 删除授权项目信息
     * 
     * @param id 授权项目主键
     * @return 结果
     */
    @Override
    public int deleteSysUserProjectById(Long id)
    {
        return sysUserProjectMapper.deleteSysUserProjectById(id);
    }
}
